package com.heima.homeservicemanagementsystem.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.heima.homeservicemanagementsystem.module.idNumberJsonSerializer;
import io.swagger.v3.oas.annotations.tags.Tag;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 微信用户表;
 *
 * @author : http://www.chiner.pro
 * @date : 2025-3-27
 */
@Data
/*@ApiModel(value = "微信用户表",description = "")*/
@Tag(name = "微信用户表")
@TableName("wx_user")
@EqualsAndHashCode(callSuper = false)
public class WxUser extends BaseEntity {

    @Schema(title = "微信标识", description = "")
    private String openid;

    @Schema(title = "解密用户信息", description = "")
    private String sessionKey;

    @Schema(title = "头像", description = "")
    private String avatar;

    @Schema(title = "昵称", description = "")
    private String username;
    @Schema(title = "状态", description = "")
    private Integer status;

    @Schema(title = "电话", description = "")
    private String phone;

    @Schema(title = "qq邮箱", description = "")
    private String email;

    @Schema(title = "生日", description = "")
    private Date birthday;

    @Schema(title = "性别", description = "")
    private Integer sex;

    @Schema(title = "身份证", description = "")
    @JsonSerialize(using = idNumberJsonSerializer.class)
    private String identityCard;

}